package com.zzyl.nursing.task;

import com.zzyl.nursing.service.IContractService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

/**
 * @author Administrator
 * @version 1.0
 * @description: TODO
 * @date 2025/9/12 10:19
 */
@Slf4j
@Component
public class ContractJob {
    @Autowired
    private IContractService contractService;

    /**
     * 更新合同状态定时任务
     */
    public void updateContractStatus(){
        log.info("更新合同状态定时任务开始执行...");
        contractService.updateContractStatus();
    }
}
